<%@taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean"%>
<script language="JavaScript">
    function validate_form(){
        if ( document.KelasForm.account.value == "" ){
            alert ( "<bean:message key="account.account"/> "+isEmpty );
        }else if ( document.KelasForm.ruang.value == "" ){
            alert ( "<bean:message key="ruang.ruang"/> "+isEmpty );
        }else if ( document.KelasForm.workflow.value == "" ){
            alert ( "<bean:message key="workflow.workflow"/> "+isEmpty );
        }else {
            document.KelasForm.submit();
        }
    }

    function validate_account_kelas_form(){
        if ( document.KelasForm.kelas.value == "" ){
            alert ( "<bean:message key="kelas.kelas"/> "+isEmpty );
        }else if ( document.KelasForm.siswa.value == "" ){
            alert ( "<bean:message key="siswa.siswa"/> "+isEmpty );
        }else {
            document.KelasForm.submit();
        }
    }

    function validate_mataPelajaran_kelas_form(){
        if ( document.KelasForm.kelas.value == "" ){
            alert ( "<bean:message key="kelas.kelas"/> "+isEmpty );
        }else if ( document.KelasForm.mataPelajaran.value == "" ){
            alert ( "<bean:message key="mapel.mapel"/> "+isEmpty );
        }else {
            document.KelasForm.submit();
        }
    }
</script>